#ifndef  H_A2SERVSY
#define  H_A2SERVSY

#ifdef __cplusplus
 extern "C" {
#endif

void A2PAS getDosTime (char *ts, char mode);
void A2PAS getDosDate (char *dt);

unsigned cdecl A2Wos_waskey (void);
unsigned cdecl A2Wos_keybd (int mode);

#define WasKey   A2Wos_waskey
#define GetKey() A2Wos_keybd(0x10)

#ifdef __FOR_DOS__

int XMS_Version (void);
int XMS_err (void);
int XMS_LargestFree (void);
int XMS_AllocExt (int SizeK);
int XMS_FreeExt (int Handle);
int A2PAS XMS_MoveExt(int Hsrc,long OffS, int Hdst,long OffD, long Len);
int UMB_Request (int npara);
int UMB_Release (int usegm);

void *serv_malloc (unsigned int size);
void  serv_free (void *ptr);

#else

# define serv_malloc os_malloc
# define serv_free   os_free

#endif

#ifdef __cplusplus
 extern "C" {
#endif

#endif /*H_A2SERVSY*/
